package com.ganbo.stock.entity;

import lombok.Data;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * 基金持仓股票： 数据来源: https://danjuanfunds.com/rank/performance
 *
 * @Author: ganbo
 * @Date: 2021/2/6 14:28
 */

@Data
@Entity
@Table(name = "f_fund_stock")
@ToString(callSuper = true)
public class FundStock extends BaseEntity {

    private String fundName;                //基金名字
    private String fundCode;                //基金代码

    private String name;                    //股票名字
    private String code;                    //股票代码
    private BigDecimal currentPrice;        //当前价格
    private BigDecimal changePercentage;    //涨跌幅
    private BigDecimal percent;             //持仓比例
    private String xqUrl;                   //雪球主页url
    private String xqSymbol;                //雪球代码(市场+股票代码)
    private String cycle;                   //基金表现所属周期


}
